﻿    using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JoyAdmin.Core
{
    /// <summary>
    /// 租户表
    /// </summary>
    public class SysTenant :SysEntity
    {
        /// <summary>
        /// 租户Id
        /// </summary> 

        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid TenantId { get; set; }

        /// <summary>
        /// 租户名
        /// </summary>
        [Required,StringLength(100)]
        public string Name { get; set; }

        /// <summary>
        /// 来源主机地址
        /// </summary>
        [StringLength(200)]
        public string Host { get; set; }

        /// <summary>
        /// 联系人
        /// </summary> 
        [StringLength(50)]
        public string LinkName { get; set; }
        /// <summary>
        /// 手机号码
        /// </summary>
        [StringLength(50)]
        public string LinkPhone { get; set; }

        /// <summary>
        /// 联系人职称
        /// </summary>
        [StringLength(50)]
        public string LinkPost { get; set; }
        /// <summary>
        /// 电子邮箱
        /// </summary>
        [StringLength(50)]
        public string Email { get; set; }

        /// <summary>
        /// 地区Id
        /// </summary> 
        public int AreaId { get; set; }

        /// <summary>
        /// 开始服务时间
        /// </summary>
        public DateTimeOffset? StartServiceTime { get; set; }
        /// <summary>
        /// 服务到期时间
        /// </summary>
        public DateTimeOffset? ExpireServiceTime { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        [StringLength(50)]
        public decimal? Longitude { get; set; }
        /// <summary>
        /// 纬度
        /// </summary>
        [StringLength(50)]
        public decimal? Latitude { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(500)]
        public string Remark { get; set; }
         
    }
}
